-- GENERATED SPELL FOR [Empyrean] --


function spell0_16098(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_16098', 545, 1)
end

function spell1_16098(pUnit, Event) --@Rake,n/a--
pUnit:FullCastSpellOnTarget(27638,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16098', 15000, 1)
end

function spell2_16098(pUnit, Event) --@Sundering Cleave,n/a--
pUnit:FullCastSpellOnTarget(17963,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16098', 30332, 1)
end

function spell3_16098(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_16098', 588, 1)
end

function Sorts_16098(pUnit, Event)
local choix_sorts_16098 = math.random(0, 3)
if choix_sorts_16098 == 0 then
pUnit:RegisterEvent('spell0_16098', 1, 1)
end
if choix_sorts_16098 == 1 then
pUnit:RegisterEvent('spell1_16098', 1, 1)
end
if choix_sorts_16098 == 2 then
pUnit:RegisterEvent('spell2_16098', 1, 1)
end
if choix_sorts_16098 == 3 then
pUnit:RegisterEvent('spell3_16098', 1, 1)
end
end

function mob16098_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16098', math.random(1500, 3000), 1)
end

function mob16098_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16098_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16098_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16098, 1, 'mob16098_Action')
RegisterUnitEvent(16098, 2, 'mob16098_Leave')
RegisterUnitEvent(16098, 3, 'mob16098_Kill')
RegisterUnitEvent(16098, 4, 'mob16098_Die')
